package com.okami.filter;

import org.springframework.web.filter.GenericFilterBean;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author: TanJingyu
 * @create: 2020-07-02 15:13
 **/
//@Component
public class OkamiFilter extends GenericFilterBean {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("我的filter。。。。。。");
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    protected ServletContext getServletContext() {
        return super.getServletContext();
    }

}
